const userRules =  {
    username: [
        { required: true, message: '请输入活动名称', trigger: 'blur' },
        { min: 3, max: 9, message: '长度在 3 到 5 个字符', trigger: 'blur' }
    ],
    password: [
        { required: true, message: '请输入密码', trigger: 'blur' },
        { min: 3, max: 9, message: '长度在 3 到 5 个字符', trigger: 'blur' }
    ]
};

const bannerRules = {
    active_name:[
        { required: true, message: '请输入活动名称', trigger: 'blur' }
    ],
    url:[
        { required: true, message: '请输入活动链接', trigger: 'blur' }
    ],
    image:[
        { required: true, message: '请输入活动图片', trigger: 'blur' }
    ],
    start_time:[
        { required: true, message: '请输入开始时间', trigger: 'blur' }
    ],
    end_time:[
        { required: true, message: '请输入结束时间', trigger: 'blur' }
    ]
}

export {userRules,bannerRules}